package com.leo.java8.lambda;


public class NewFeaturesTester2 {
	
	//final static String salutation = "Hello";
	
	public static void main(String[] args) {
		String salutation = "Hello ";
		
		
		GreetingService greetService = message -> 
		System.out.println(salutation + message);
		
		greetService.sayMessage("Shiyanlou");
		
	}
	
	interface GreetingService {
		void sayMessage(String message);
	}
	
}
